package com.sand.util;

public class DBControl {
	private static final ThreadLocal<String> local = new ThreadLocal<String>();
	
	public static final String SDB = "SdbSourse";
	
	public static final String MDB = "MdbSourse";
	
	public static void setDBType(String dbType){
		local.set(dbType);
	}
	
	public static String getDBType(){
		
		return local.get();
	}
	
	public void restore() {  
        local.set("MdbSourse");  
    }  
	
	public static void removeDBType(){
		
		local.remove();
	}
}
